package com.lxmes.jiesuan.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lxmes.jiesuan.mapper.XhDwhysqMapper;
import com.lxmes.jiesuan.domain.XhDwhysq;
import com.lxmes.jiesuan.service.IXhDwhysqService;

/**
 * 单位会员申请Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-03-30
 */
@Service
public class XhDwhysqServiceImpl implements IXhDwhysqService 
{
    @Autowired
    private XhDwhysqMapper xhDwhysqMapper;

    /**
     * 查询单位会员申请
     * 
     * @param id 单位会员申请主键
     * @return 单位会员申请
     */
    @Override
    public XhDwhysq selectXhDwhysqById(Long id)
    {
        return xhDwhysqMapper.selectXhDwhysqById(id);
    }

    /**
     * 查询单位会员申请列表
     * 
     * @param xhDwhysq 单位会员申请
     * @return 单位会员申请
     */
    @Override
    public List<XhDwhysq> selectXhDwhysqList(XhDwhysq xhDwhysq)
    {
        return xhDwhysqMapper.selectXhDwhysqList(xhDwhysq);
    }

    /**
     * 新增单位会员申请
     * 
     * @param xhDwhysq 单位会员申请
     * @return 结果
     */
    @Override
    public int insertXhDwhysq(XhDwhysq xhDwhysq)
    {
        return xhDwhysqMapper.insertXhDwhysq(xhDwhysq);
    }

    /**
     * 修改单位会员申请
     * 
     * @param xhDwhysq 单位会员申请
     * @return 结果
     */
    @Override
    public int updateXhDwhysq(XhDwhysq xhDwhysq)
    {
        return xhDwhysqMapper.updateXhDwhysq(xhDwhysq);
    }

    /**
     * 批量删除单位会员申请
     * 
     * @param ids 需要删除的单位会员申请主键
     * @return 结果
     */
    @Override
    public int deleteXhDwhysqByIds(Long[] ids)
    {
        return xhDwhysqMapper.deleteXhDwhysqByIds(ids);
    }

    /**
     * 删除单位会员申请信息
     * 
     * @param id 单位会员申请主键
     * @return 结果
     */
    @Override
    public int deleteXhDwhysqById(Long id)
    {
        return xhDwhysqMapper.deleteXhDwhysqById(id);
    }
}
